package com.k.kc.common.resp;

/**
 * @author kivil
 */
public class RespDto {
    private int code;
    private String msg;
    private Object data;

    public RespDto(int c, String m, Object d) {
        this.code = c;
        this.msg = m;
        this.data = d;
    }

    public static RespDto getSuccess(){
        return new RespDto(0,"SUCCESS",null);
    }

    public static RespDto getError(){
        return new RespDto(-1,"ERROR",null);
    }
}
